<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018\9\5 0005
  Time: 15:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <style>
        td {
            width: 100px;
            height: 16px;
            line-height: 16px;
            text-align: center;
            vertical-align: middle;
            left: 100px;
        }
        tr{
            background: gainsboro
        }
    </style>
</head>
<body>
    <form action="" method="post">
        <table border="1" cellspacing="0">
            <tr>
                <td>资源名称</td>
                <td>产权面积</td>
                <td>可出租面积</td>
                <td>当前状态</td>
                <td>租期</td>
                <td>操作</td>
            </tr>
            <c:forEach items="${rooms}" var="room">
                <tr>

                    <td>${room.rname}</td>
                    <td>${room.size}</td>
                    <td>${room.rent_size}</td>
                    <td>${room.is_rent}</td>
                    <td>${room.rent_term}</td>
                    <td width="150px">
                        <a href="/rentsys/room/toEditRoom?rid=${room.rid}">编辑</a>&nbsp;
                        <a href="/rentsys/agreen/history?rid=${room.rid}"><font color="green">历史合同</font></a>
                    </td>
                </tr>
            </c:forEach>
            <a href="/rentsys/room/toAddRoom">添加</a>
        </table>
    </form>
</body>
</html>
